Optimal. Leaf size=115 \[ -\frac{3 \sqrt{2} a^2 \tanh ^{-1}\left (\frac{\sqrt{c} \cos (e+f x)}{\sqrt{2} \sqrt{c-c \sin (e+f x)}}\right )}{c^{3/2} f}+\frac{a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac{3 a^2 \cos (e+f x)}{c f \sqrt{c-c \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.244084, antiderivative size = 115, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.179, Rules used = {2736, 2680, 2679, 2649, 206} \[ -\frac{3 \sqrt{2} a^2 \tanh ^{-1}\left (\frac{\sqrt{c} \cos (e+f x)}{\sqrt{2} \sqrt{c-c \sin (e+f x)}}\right )}{c^{3/2} f}+\frac{a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac{3 a^2 \cos (e+f x)}{c f \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2736
Rule 2680
Rule 2679
Rule 2649
Rule 206
Rubi steps
\begin{align*} \int \frac{(a+a \sin (e+f x))^2}{(c-c \sin (e+f x))^{3/2}} \, dx &=\left (a^2 c^2\right ) \int \frac{\cos ^4(e+f x)}{(c-c \sin (e+f x))^{7/2}} \, dx\\ &=\frac{a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}-\frac{1}{2} \left (3 a^2\right ) \int \frac{\cos ^2(e+f x)}{(c-c \sin (e+f x))^{3/2}} \, dx\\ &=\frac{a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac{3 a^2 \cos (e+f x)}{c f \sqrt{c-c \sin (e+f x)}}-\frac{\left (3 a^2\right ) \int \frac{1}{\sqrt{c-c \sin (e+f x)}} \, dx}{c}\\ &=\frac{a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac{3 a^2 \cos (e+f x)}{c f \sqrt{c-c \sin (e+f x)}}+\frac{\left (6 a^2\right ) \operatorname{Subst}\left (\int \frac{1}{2 c-x^2} \, dx,x,-\frac{c \cos (e+f x)}{\sqrt{c-c \sin (e+f x)}}\right )}{c f}\\ &=-\frac{3 \sqrt{2} a^2 \tanh ^{-1}\left (\frac{\sqrt{c} \cos (e+f x)}{\sqrt{2} \sqrt{c-c \sin (e+f x)}}\right )}{c^{3/2} f}+\frac{a^2 c \cos ^3(e+f x)}{f (c-c \sin (e+f x))^{5/2}}+\frac{3 a^2 \cos (e+f x)}{c f \sqrt{c-c \sin (e+f x)}}\\ \end{align*}
Mathematica [C] time = 0.65125, size = 149, normalized size = 1.3 \[ -\frac{a^2 \left (\cos \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{1}{2} (e+f x)\right )\right ) \left (3 \sin \left (\frac{1}{2} (e+f x)\right )-\sin \left (\frac{3}{2} (e+f x)\right )+3 \cos \left (\frac{1}{2} (e+f x)\right )+\cos \left (\frac{3}{2} (e+f x)\right )-(6+6 i) \sqrt [4]{-1} (\sin (e+f x)-1) \tan ^{-1}\left (\left (\frac{1}{2}+\frac{i}{2}\right ) \sqrt [4]{-1} \left (\tan \left (\frac{1}{4} (e+f x)\right )+1\right )\right )\right )}{c f (\sin (e+f x)-1) \sqrt{c-c \sin (e+f x)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.622, size = 145, normalized size = 1.3 \begin{align*}{\frac{{a}^{2}}{f\cos \left ( fx+e \right ) } \left ( 3\,\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{2}}{\sqrt{c}}} \right ) c\sin \left ( fx+e \right ) -3\,\sqrt{2}{\it Artanh} \left ( 1/2\,{\frac{\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{2}}{\sqrt{c}}} \right ) c-2\,\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{c}\sin \left ( fx+e \right ) +4\,\sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }\sqrt{c} \right ) \sqrt{c \left ( 1+\sin \left ( fx+e \right ) \right ) }{c}^{-{\frac{5}{2}}}{\frac{1}{\sqrt{c-c\sin \left ( fx+e \right ) }}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (a \sin \left (f x + e\right ) + a\right )}^{2}}{{\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 1.14709, size = 771, normalized size = 6.7 \begin{align*} \frac{\frac{3 \, \sqrt{2}{\left (a^{2} c \cos \left (f x + e\right )^{2} - a^{2} c \cos \left (f x + e\right ) - 2 \, a^{2} c +{\left (a^{2} c \cos \left (f x + e\right ) + 2 \, a^{2} c\right )} \sin \left (f x + e\right )\right )} \log \left (-\frac{\cos \left (f x + e\right )^{2} +{\left (\cos \left (f x + e\right ) - 2\right )} \sin \left (f x + e\right ) - \frac{2 \, \sqrt{2} \sqrt{-c \sin \left (f x + e\right ) + c}{\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )}}{\sqrt{c}} + 3 \, \cos \left (f x + e\right ) + 2}{\cos \left (f x + e\right )^{2} +{\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right )}{\sqrt{c}} - 4 \,{\left (a^{2} \cos \left (f x + e\right )^{2} + 2 \, a^{2} \cos \left (f x + e\right ) + a^{2} -{\left (a^{2} \cos \left (f x + e\right ) - a^{2}\right )} \sin \left (f x + e\right )\right )} \sqrt{-c \sin \left (f x + e\right ) + c}}{2 \,{\left (c^{2} f \cos \left (f x + e\right )^{2} - c^{2} f \cos \left (f x + e\right ) - 2 \, c^{2} f +{\left (c^{2} f \cos \left (f x + e\right ) + 2 \, c^{2} f\right )} \sin \left (f x + e\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \mathit{sage}_{2} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]